package com.mew.slots.core.game.ajxb;

import com.mew.common.rest.bo.GameSession;
import com.mew.slots.core.common.handler.AbstractBetHandler;
import com.mew.slots.core.common.handler.SlotsHandler;
import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import com.mew.slots.core.common.vo.StrategyGameVO;
import com.mew.slots.core.game.ajxb.roller.AjxbIli;
import com.mew.slots.core.game.ajxb.roller.AjxbXml;
import com.mew.slots.core.game.ajxb.service.AjxbService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author King.Song
 * @Date 2020/11/9 0009
 **/
@Service
@SlotsHandler(value = "AJXB")
@Slf4j
public class AjxbHandler extends AbstractBetHandler {

    private AjxbService ajxbService = new AjxbService();

    @Override
    public void readRoller() throws Exception{
        AjxbIli.getInstance().init();
    }

    @Override
    public void specialCheck(StrategyGameVO gameVO, GameSession userVO) {

    }

    @Override
    public SlotsPlayResponseMessage play(StrategyGameVO gameVO, GameSession userVO) {
        return ajxbService.Ready(gameVO);
    }

    @Override
    public SlotsBonusPlayResponseMessage playBonus(StrategyGameVO gameVO, GameSession userVO) {
        return null;
    }
}
